package grails.goods.goods

class Goods {

    String goodsname
    String desciption
    Double price
    Integer inventory
    Integer status

    static constraints = {
        goodsname maxSize: 20, comment: '商品名称'
        desciption maxSize: 100, comment: '商品描述'
        price comment: '单价'
        inventory comment: '库存'
        status comment: '状态1正常，-1下架'
    }
}
